import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: ()=>import('@/views/index.vue')
    },
    {
      path: '/index',
      redirect: '/'
    },
    {
      path: '/client',
      name: 'client',
      component: ()=>import('@/views/client/index.vue')
    },
    {
      path: '/server',
      name: 'server',
      component: ()=>import('@/views/server/index.vue')
    }
  ]
})

export default router
